package small.common.designPattern.behavioral.chainOfResponsibility.slotchain;

public abstract class ProcessorSlotChain extends AbstractLinkedProcessorSlot<Object> {

    /**
     * 添加头结点执行器
     * @param protocolProcessor 待添加的执行器
     */
    public abstract void addFirst(AbstractLinkedProcessorSlot<?> protocolProcessor);

    /**
     * 添加尾节点执行器
     *
     * @param protocolProcessor 待添加的执行器
     */
    public abstract void addLast(AbstractLinkedProcessorSlot<?> protocolProcessor);
}
